<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/log/SafeLog.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2241064965c8d9ca993f08b926076f7d.html">log</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SafeLog.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_safe_log_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __SAFELOG_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __SAFELOG_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;../file/File.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;../thread/Mutex.h&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;../stream/StringTools.h&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;../stream/internal/StringImp.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="logdef_8h.html">logdef.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="_safe_log_8h.html#af5f39b12ec7524d513a48e9b662a445a">   12</a></span>&#160;<span class="preprocessor">#define DEFAULT_LOG_SIZE 10*1024*1024   </span></div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="_safe_log_8h.html#acf3ddfcd82496629d7ab869a57f2fedd">   13</a></span>&#160;<span class="preprocessor">#define DEFAULT_FLUSH_TIME 3600         </span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html">   18</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_c_safe_logs.html">CSafeLogs</a></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a>(<a class="code" href="class_c_safe_logs.html">CSafeLogs</a>);</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="class_c_safe_logs.html">CSafeLogs</a>();</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    ~<a class="code" href="class_c_safe_logs.html">CSafeLogs</a>();</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="class_c_safe_logs.html">CSafeLogs</a>(<span class="keyword">const</span> <a class="code" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a>* szLogPath, <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel = <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LOG_NORMAL</a>, <a class="code" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a> nFileMaxSize = <a class="code" href="_safe_log_8h.html#af5f39b12ec7524d513a48e9b662a445a">DEFAULT_LOG_SIZE</a>, <a class="code" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> nfTime = <a class="code" href="_safe_log_8h.html#acf3ddfcd82496629d7ab869a57f2fedd">DEFAULT_FLUSH_TIME</a>);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">void</span> SetLogPath(<span class="keyword">const</span> <a class="code" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a>* szLogPath);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">void</span> SetLogLevel(<a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">void</span> SetWriteConsole(<span class="keywordtype">bool</span> isWriteConsole);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> SetLogFileSize(<a class="code" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a> nFileMaxSize);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">void</span> SetSwitchFile(<a class="code" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> nfTime);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> WriteLog(<span class="keyword">const</span> <span class="keywordtype">char</span>* szLog, <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> size, <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> WriteLog(<span class="keyword">const</span> <span class="keywordtype">char</span>* szLog, <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> WriteLog(<span class="keyword">const</span> <span class="keywordtype">char</span>* szLog, <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> size, <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel, <span class="keywordtype">bool</span> bHead, <span class="keywordtype">bool</span> bFlush);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">bool</span> SwitchLogFile();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> WriteLogHead(<a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">bool</span> FlushLog();</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> _WriteLog(<span class="keyword">const</span> <span class="keywordtype">char</span>* szLog, <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> size, <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel, <span class="keywordtype">bool</span> bHead, <span class="keywordtype">bool</span> bFlush);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a5b6ad5c65a41d59cd6c40a87ca173d93">   72</a></span>&#160;    <a class="code" href="class_c_file.html">CFile</a> <a class="code" href="class_c_safe_logs.html#a5b6ad5c65a41d59cd6c40a87ca173d93">_file</a>;                        </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#abed76fa949bfb689a91dd7f86eb68634">   73</a></span>&#160;    <a class="code" href="class_c_mutex.html">CMutex</a> <a class="code" href="class_c_safe_logs.html#abed76fa949bfb689a91dd7f86eb68634">_fileMutex</a>;                  </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#acfec8eab5ce3695c7f3c111bc42b9ddf">   74</a></span>&#160;    <a class="code" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a> <a class="code" href="class_c_safe_logs.html#acfec8eab5ce3695c7f3c111bc42b9ddf">_nFileMaxSize</a>;               </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a3dd941c690e7a627b27eca4c62f7d91a">   75</a></span>&#160;    <a class="code" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> <a class="code" href="class_c_safe_logs.html#a3dd941c690e7a627b27eca4c62f7d91a">_nFlushTime</a>;                   </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#aef956466255d247b0353aa78b683cd68">   76</a></span>&#160;    time_t <a class="code" href="class_c_safe_logs.html#aef956466255d247b0353aa78b683cd68">_tLastWrite</a>;                 </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a50d55056cc11242a56bdab1aeb5e43ff">   77</a></span>&#160;    StringImp&lt;tstring&gt; <a class="code" href="class_c_safe_logs.html#a50d55056cc11242a56bdab1aeb5e43ff">_strLogPath</a>;     </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a08dde93476a99eabe315b0c618f05ecc">   78</a></span>&#160;    StringImp&lt;tstring&gt; <a class="code" href="class_c_safe_logs.html#a08dde93476a99eabe315b0c618f05ecc">_strFileName</a>;    </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a56df89a4b10c88b3f510ce1353e3ff76">   79</a></span>&#160;    StringImp&lt;tstring&gt; <a class="code" href="class_c_safe_logs.html#a56df89a4b10c88b3f510ce1353e3ff76">_strCurPath</a>;     </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a4b0aebbbd5501c2d7924fcf90f169e9c">   80</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_c_safe_logs.html#a4b0aebbbd5501c2d7924fcf90f169e9c">_nLogLevel</a>;                     </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_c_safe_logs.html#a792e2fc28b9c58bf53c98163e055a5dd">   81</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_safe_logs.html#a792e2fc28b9c58bf53c98163e055a5dd">_isWriteConsole</a>;               </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;};</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif // __SAFELOG_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_safe_logs_html_a08dde93476a99eabe315b0c618f05ecc"><div class="ttname"><a href="class_c_safe_logs.html#a08dde93476a99eabe315b0c618f05ecc">CSafeLogs::_strFileName</a></div><div class="ttdeci">StringImp&lt; tstring &gt; _strFileName</div><div class="ttdoc">当前的文件名称</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00078">SafeLog.h:78</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a></div><div class="ttdeci">LogLevel</div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00010">logdef.h:10</a></div></div>
<div class="ttc" id="atools_8h_html_a65c91f8d7af3c67b8a21e089fdddd0fe"><div class="ttname"><a href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a></div><div class="ttdeci">#define TCHAR</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00187">tools.h:187</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_abed76fa949bfb689a91dd7f86eb68634"><div class="ttname"><a href="class_c_safe_logs.html#abed76fa949bfb689a91dd7f86eb68634">CSafeLogs::_fileMutex</a></div><div class="ttdeci">CMutex _fileMutex</div><div class="ttdoc">文件锁</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00073">SafeLog.h:73</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a4b0aebbbd5501c2d7924fcf90f169e9c"><div class="ttname"><a href="class_c_safe_logs.html#a4b0aebbbd5501c2d7924fcf90f169e9c">CSafeLogs::_nLogLevel</a></div><div class="ttdeci">int _nLogLevel</div><div class="ttdoc">当前日志级别</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00080">SafeLog.h:80</a></div></div>
<div class="ttc" id="aclass_c_file_html"><div class="ttname"><a href="class_c_file.html">CFile</a></div><div class="ttdoc">文件操作类</div><div class="ttdef"><b>Definition:</b> <a href="_file_8h_source.html#l00028">File.h:28</a></div></div>
<div class="ttc" id="aclass_c_mutex_html"><div class="ttname"><a href="class_c_mutex.html">CMutex</a></div><div class="ttdoc">常规锁</div><div class="ttdef"><b>Definition:</b> <a href="_mutex_8h_source.html#l00025">Mutex.h:25</a></div></div>
<div class="ttc" id="atools_8h_html_af0d60cfe49f1e07cbec28c12afc4343e"><div class="ttname"><a href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a></div><div class="ttdeci">#define delete_class_copy_operator(ClassName)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00345">tools.h:345</a></div></div>
<div class="ttc" id="alogdef_8h_html"><div class="ttname"><a href="logdef_8h.html">logdef.h</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html"><div class="ttname"><a href="class_c_safe_logs.html">CSafeLogs</a></div><div class="ttdoc">线程安全日志操作类</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00018">SafeLog.h:18</a></div></div>
<div class="ttc" id="atools_8h_html_a64152c8b939d1ce06c7c5cb6c97b62f8"><div class="ttname"><a href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a></div><div class="ttdeci">#define LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00095">tools.h:95</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a5b6ad5c65a41d59cd6c40a87ca173d93"><div class="ttname"><a href="class_c_safe_logs.html#a5b6ad5c65a41d59cd6c40a87ca173d93">CSafeLogs::_file</a></div><div class="ttdeci">CFile _file</div><div class="ttdoc">文件类</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00072">SafeLog.h:72</a></div></div>
<div class="ttc" id="a_safe_log_8h_html_af5f39b12ec7524d513a48e9b662a445a"><div class="ttname"><a href="_safe_log_8h.html#af5f39b12ec7524d513a48e9b662a445a">DEFAULT_LOG_SIZE</a></div><div class="ttdeci">#define DEFAULT_LOG_SIZE</div><div class="ttdoc">默认的日志大小10M</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00012">SafeLog.h:12</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a792e2fc28b9c58bf53c98163e055a5dd"><div class="ttname"><a href="class_c_safe_logs.html#a792e2fc28b9c58bf53c98163e055a5dd">CSafeLogs::_isWriteConsole</a></div><div class="ttdeci">bool _isWriteConsole</div><div class="ttdoc">是否写入控制台</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00081">SafeLog.h:81</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LOG_NORMAL</a></div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00013">logdef.h:13</a></div></div>
<div class="ttc" id="a_safe_log_8h_html_acf3ddfcd82496629d7ab869a57f2fedd"><div class="ttname"><a href="_safe_log_8h.html#acf3ddfcd82496629d7ab869a57f2fedd">DEFAULT_FLUSH_TIME</a></div><div class="ttdeci">#define DEFAULT_FLUSH_TIME</div><div class="ttdoc">默认每隔多长时间切换一次日志</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00013">SafeLog.h:13</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_aef956466255d247b0353aa78b683cd68"><div class="ttname"><a href="class_c_safe_logs.html#aef956466255d247b0353aa78b683cd68">CSafeLogs::_tLastWrite</a></div><div class="ttdeci">time_t _tLastWrite</div><div class="ttdoc">上一次写入的时间</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00076">SafeLog.h:76</a></div></div>
<div class="ttc" id="atools_8h_html_ae44d8d5d0e473c82cf8f2021a86cb6a4"><div class="ttname"><a href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a></div><div class="ttdeci">INTPTR_T fsize_t</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00237">tools.h:237</a></div></div>
<div class="ttc" id="atools_8h_html_a57be03562867144161c1bfee95ca8f7c"><div class="ttname"><a href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a></div><div class="ttdeci">unsigned long long UINT64</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00130">tools.h:130</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_acfec8eab5ce3695c7f3c111bc42b9ddf"><div class="ttname"><a href="class_c_safe_logs.html#acfec8eab5ce3695c7f3c111bc42b9ddf">CSafeLogs::_nFileMaxSize</a></div><div class="ttdeci">UINT64 _nFileMaxSize</div><div class="ttdoc">单个文件大小</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00074">SafeLog.h:74</a></div></div>
<div class="ttc" id="atools_8h_html_a36cb3b01d81ffd844bbbfb54003e06ec"><div class="ttname"><a href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a></div><div class="ttdeci">unsigned int UINT</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00139">tools.h:139</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a3dd941c690e7a627b27eca4c62f7d91a"><div class="ttname"><a href="class_c_safe_logs.html#a3dd941c690e7a627b27eca4c62f7d91a">CSafeLogs::_nFlushTime</a></div><div class="ttdeci">UINT _nFlushTime</div><div class="ttdoc">每隔多长时间刷新一次日志</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00075">SafeLog.h:75</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a56df89a4b10c88b3f510ce1353e3ff76"><div class="ttname"><a href="class_c_safe_logs.html#a56df89a4b10c88b3f510ce1353e3ff76">CSafeLogs::_strCurPath</a></div><div class="ttdeci">StringImp&lt; tstring &gt; _strCurPath</div><div class="ttdoc">当前文件路径</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00079">SafeLog.h:79</a></div></div>
<div class="ttc" id="aclass_c_safe_logs_html_a50d55056cc11242a56bdab1aeb5e43ff"><div class="ttname"><a href="class_c_safe_logs.html#a50d55056cc11242a56bdab1aeb5e43ff">CSafeLogs::_strLogPath</a></div><div class="ttdeci">StringImp&lt; tstring &gt; _strLogPath</div><div class="ttdoc">当前的文件路径</div><div class="ttdef"><b>Definition:</b> <a href="_safe_log_8h_source.html#l00077">SafeLog.h:77</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
